Major refactor for new api endpoints and structure.

Untested as yet, needs to be checked once endpoints are available.
Moved getConnectUrl and removed old Auth endpoint class
Merge branch 'new-endpoints'