Apply pattern matching to remote services.

Jira issue: wp-1264
Tidy log output.

Jira issue: wp-1264
add type check for readJson parameters

partially should fix exceptions while working with received messages

Jira-issue: WP-1258
Merge pull request #57 from aldafu/WP-1258-fix-type-error

add type check for readJson parameters
Added check to fix crashes on undefined instances

Jira issue: WP-1269
Merge pull request #58 from smonteleone/WP-1269

Added check to fix crashes on undefined instances
provide concat method for Buffers on Android

the method doesn't exist on Node.js for Android. fixes receiving messages.

Jira-issue: WP-1258
Merge pull request #59 from aldafu/WP-1258-buffer-concat-for-android

provide concat method for Buffers on Android
fix regex check for wrt app id in msg handler

change regex to make the BID or IID prefix optional. should fix message
storm due to looping messages that cannot be delivered.

Jira-issue: WP-1264
Merge pull request #60 from aldafu/WP-1264-fix-regex-for-wrt-app-id-in-msghandler

fix regex check for wrt app id in msg handler
WP-1083: rename 'wrt' to 'wrt_home'
Merge pull request #61 from gguowei/wp-1083

WP-1083: rename 'wrt' to 'wrt_home'
Sync algorithm update

Sorts each list
local array is also included along with remote array values

Jira Issue: WP-1264
PZH sync fix

Timer decreased for timeout to avoid timeout in WRT, usually happens when queried multiple entities and 1 entity is offline.
Test updated to include to include PZHs

Jira Issue: WP-1264
Sort list after sync and api uri in module case

Jira Issue: WP-1264
Merge pull request #56 from TobyEalden/wp-1264

Core stability bug fixes
No local cache result

Jira Issue: WP-1264
Merge pull request #62 from habibvirji/WP-1264-pzhSync

Wp 1264 pzh sync