Easy API for creating Wordpress posttypes