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
added Client tests
updated utils tests
added ApiKey class tests
added test for api key loader
added RequestAuthenticator class tests
added request executor test
Merge remote-tracking branch 'stormpath/master'
added test for Authentication Result resource

merged latest master commit