Consolidate duplicate code
Rename functions
Register WPS server ajax connection working, more or less
Remove debugging code, better message reporting
Properly handle input of bad URLs