initial code for REST server and web memory