Basic functionality and state response

Added more basic functionalities to run the service as well as the
ability to get a response when querying the State table.