Add posts

This is a work in progress, but it allows it to work with the frontend.