working. except the list of posts on 404 page which are mostly empty for some reason. Cosmetic refactorings to pretty things up before continuing.