Major overhaul in the web service API