Minor linter fixes.
Added tests for multiple calls to API-functions. Added jshint multistr to tests.
Fixed memory leak (when API-function got called multiple times) by changing APICallbackSignaling to reside on stack.
Handle spurious wakeups.
Travis-CI config added.