added restful services (jpa not entirely working)