Switched post type actions to be dynamic to support custom post types. Fixes #3.