Refactored wrapper to use factory logic.

- Moved files into lib/resources
- Init from lib/index.js
- Updated tests
Update example files
Merge pull request #55 from lob/factory-logic

Refactored wrapper to use factory logic.