Fixed tests within examples.
Merge pull request #264 from alexindigo/fixed_tests

Fixed tests within examples.
remove duplication
fix serverSide redirectTo with rootPath != default
add sinon-chai
expose clientSync to make it testable
add tests for clientSync
don’t use options.data to set the payload
fixed the client tests for example 06_appview
Fixed binding error on _.each iterator
adds tests for modelUtils
add linefeed
add tests for fetching a constructor from _classMap
use closure instead of this context
add parentheses
fixed tests

The get method was async some time ago. After this was changed to sync
the tests were not adapted and no assertion was executed.
improve assertions
use sinon fakeTimer instead of setTimeout
use only single quotes to be consistent
adapt test name