added basic rest server
added rest client * without delete functionality
some code refactoring