Fixes #5034 Pulls out web services into a plugin

This enabled the web_services plugin with top priority if the site has web services enabled. I also deprecated the primary API functions as a way of preventing WSODs.