Adding support for multiple connections

Added basic support for multiple connection (by default the connection is named 'default'). The document classes will have the ability to choose using annotations which connections they should use