Add a base class to handle the opening of a connection to the CiviCRM server
Refactor views to include further optimizations