Added filtering of system and component IDs

If a message is received which doesn't match the specified IDs it is
ignored. Alternatively the IDs may be specified as zero and then all
messages wil be returned (but messages cannot be created)
Updated main.js examples with a few comments