Fixed problem with post entity named queries.
Moved resources into their own directory for posts.
Created utility method to get the logged in user.