Added configure property.  Added configure test

Added Check in configure function to make sure the options are defined and an object.  Added a configure property to the return so we can access configuration variables in controllers.  I need the client id in a controller for login with paypal and don't want to hard code.  Added configuration-test to make sure that the configuration property is an object.