Created new packages for organising REST API related classes
Raising exceptions instead of returning HTTP error responses