Fix missing close parenthesis
Merge pull request #10 from nicjohnson/master

Fix missing close parenthesis
updated <base> url js logic for prod
Added test for Resource class

fixed minor issue with parsing optional params
added some ugly hack to resource class, because of cyclomatic dependency
added instance resource class test
added Collection Resource class tests

- known issue: recursive callback chain
added resource factory test

removed obsolete comment
added tests for Tenant resource
added Account resource test

renamed resource factory test file to meet test files name convention
added Application resource class test
added directory resource test
added Group resource tests
added Group Membership resource tests
added Directory Child resource test
added test for Resource Error