response from server now have more friendly structure, added json/xml type response relying on url path, edited some rules for url