Refactor controllers and helpers

move db actions to models package
refactor helpers
better controller composition
start posts controller
right now i'm just flashing errors for my own edification, in a real app we'd want to redirect to a 404 and log these some other way