Rewrote codebase to use custom post types in WP

Still needs testing and cleanup