API connection class initial work

The initial work on the Connection class for the API.