Separate out post/user/comment/option global functions; Add ability to register custom object types