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