Fixes for issue #777

- Resolution of histogram now depends on time range of search, making it more reasonable
Fix for issue #862: Wrong encoding of query when updating histogram solution is changed

- links to change resolution of histogram now properly URLEncode parameters (like the query)
Merge branch 'issue862'

Conflicts:
	app/controllers/SearchController.java
Updat rest client to 5cd58c0b76bff50b27befcd92ecc4027bca2718e