api stuff for posts, and a bit of html5