Use standard naming conventions for AJAX actions and methods

See #184
More naming standardization

See #184
Refactor! Clean up handle_ajax_update_metadata() for clarity, consistency, and security

Also, move $published_statuses to a class-level variable so we don't have to redeclare everywhere

See #184