Improved autocomplete popup

Can now also click to select an item from popup list
Used HTML5 history api

Refactored history to now use the HTML5 API.