Added RESTful webservice and few more changes