Improved file structure and added basic 'posts' code.