Refactoring and feature work

Changes:
- Post titles on post list page now links to the individual posts
- Added 'edit' and 'delete' links to posts when logged in
- Fixed the 'last edited' feature
- Significant refactoring to make clear what maps are being passed around to whom
- Template selectors now based on id when possible, rather than class