api works now

- fixed link to api.js by fixing public/controllers.js and public/app.js
- added links in post title to /readPost
- still need to fix links inside /readPost page