Updated functionality to add/update Prails users via API (requires admin rights); fixed a bug with endpoint detection in both PHP and Snow mode. Improved error reporting for Snow mode.