factored all database access into models
fleshed out some route-controller bindings
revised REST api. implemented single post getter
made post list use post partial; added remove to model and controller
fixed layout and added static pages