Restrict routes to logs and habits

Restrict the API endpoints by specifying explicit routes. This will
remove the ability to insert items into any collection desired by
the client.
Change habit list into listview

Change the list of habits shown on the habits page into a jQuery
Mobile listview.