remove unused code

remove RESTful endpoint code moving toward JSON exchanges with clients