Huddersfield goalkeeper Alex Smithies has signed a new contract that could keep him at the club until 2017.