Replaced old functions with checkByType function

Jira-issue: WP-349
Modified function name and returned values to make them more intuitive

Jira-issue: WP-349
Generic message validation jasmine test

Jira-issue: 349
Prop message validation jasmine test
deliveryNotification message validation jasmine test

Jira-issue: WP-349
JSONRPC messages validation jasmine test

Jira-issue: WP-349