moved some restful resource calls into reusable services
added response constants
moved modal dialog into service