Implemented Locations API and tests

implemented Location endpoints with tests.