Add REST-interface for reads and writes