Crash if message id is not in network

If var m = this.messages[id] is undefined the log message two lines down will fail as name is undefined, too.
Merge pull request #1 from UweTrottmann/patch-1

Crash if message id is not in network
[can] Return immediately if no database rules need to be applied
Added built support for node-gyp
Fixed various compile warnings and valgrind hints