Refactor controllers and helpers

move db actions to models package
refactor helpers
better controller composition
start posts controller
rudimentary log-in and posts index

log in with email, no auth yet
posts index
Merge pull request #8 from pathouse/user-has-posts

User has posts