Change to object based permission checks for more flexibility.

Create new function json_check_post_permission.
Remove previous json_check_{capability}_permission functions.
Update permission check function names in Posts and Meta routes.