User:Martyav/API:Protect WIP

This API presented with many of the same issues as API:Import: finding a proper test wiki, getting user permissions for the test wiki, exploring how the test wiki has permissions configured, setting up a bot password, making sure the bot account is configured to protect pages, dealing with other users touching test pages, and then verifying with other accounts that the code works universally. Because getting the sample code in a completed state was taking up so much time, the draft has been left unfinished, although it is close to finished.