Add sorting and time range menu on search

![image](https://cloud.githubusercontent.com/assets/339611/3234000/155316c8-f0c4-11e3-8f73-43ef979648ee.png)

fixes #460