Minor refactor of index.js

Moved functions out of DOM ready function, removed console.logs and
made the one left safe for browsers that don’t have window.console.
Minor code readability changes.
Adding the /api/entry endpoint

Adding a single entry endpoint to fetch a single entry by ID
Setting correct mimetype on getfeed endpoint

Setting mime type application/json on the getfeed endpoint
An entry page for individual entries

An entry page for individual entries, rendered server side for Facebook
sharing stuff to work better. This required a change in lonelyapp and
flask server to support rendering either templates or JSON
Styling entry page