added basic methods to work with server through REST