Fix post IDs and classes
Allow posts to be queried by slug that is distinct from post type name

e.g. /posts returns all posts of type `blog`, /photos returns all posts of type `photo`.