basic webservice and persistence

#39 and #40