Added rest dependency. Modified web.xml for rest config.