Connection api

This will make it easier to integrate other 3rd party stuff like sqs instead of just amazon sqs. Also a doctrine dbal could be created.

Fixes #28