add markdown for posts, refactor route files, general cleanup