Extended web service methods

Improved Connection class to handle database query.
Partially implemented LDAP class to handle LDAP operations.
Partially implemented User class to handle User operations.
Renamed services_json page to wsclient.
Changed wsclient page to return JSON only when browsed directly.