move post types into named file
begin api
reorganise everything