use Error instead of Exception

Exception doesn’t exist in javascript.
add tests for DataAdapter
add missing tests for server router
Merge pull request #317 from lusini/improve-server-router-tests

Improve server router tests
Merge pull request #316 from lusini/fix-DataAdapter

Fix DataAdapter
improve server tests

squashed commits:
* use single quotes
* add missing var statement
* fix deprecation warning
  We have to ensure this.options is an object before setting properties on it.
* remove unnecessary whitespace in formatted string
* add missing tests for server
Merge pull request #315 from lusini/improve-server-tests

Improve server tests