added springframework context and web dependencies to pom.xml and setup basic error handling for restful api