removed error logic in methods and returning error object from http request
removed duplicate var declarations
changed options factory to provider and add api_key to .config
basic provider instance working.. need to wrap object in a custom function to apply OO patterns