Moved Dto dependencies to API. Added exception handling for REST services