Remove service type array when empty.

When a service that gets unregistered is the last of its type,
don't store an empty array for this type, simply remove it.

Jira-issue: WP-118
Add timeout handling to findServices.

By default there is now a 120 seconds timeout for findServices to
call the findCallBack. If not all entities or peers reported back
before that timeout then the findCallBack will be called with all
services found so far. The timeout can be configured by specifying
the options parameter.

Jira-issue: WP-118
Clean up RPC tests.

Add tests for service registering/unregistering.
Add tests for RPC request handling.
Change type tests to be more jasmine-like.
Add license header.

Jira-issue: WP-118
New PZH admin web UI

Created new HTML5/CSS3 web UI for PZH

Jira issue: WP-124
Merge pull request #83 from andreasbotsikas/WP-124

New PZH admin web UI
Use length from most recent read for length check

Fixes reading json split into multiple buffers.
Add some more tests.

Jira-issue: WP-125
Merge pull request #85 from aldafu/WP-125-fix-multiple-split-json-msg

solved issue http://jira.webinos.org/browse/WP-125
Added readme file

Added a first readme file that contains a description,
links to the developer portal, jira and the main website

Jira issue: WP-85
Merge pull request #86 from dblomme/WP-85-Add-readme-file

Added readme file
Add tests for RPC execute and response.

Now tests rpc service using success and error callbacks. Also
add test for listener pattern, where a client-side callback is
used for multiple invocations.

Jira-issue: WP-118
Clean up exported symbols in RPC.

Don't add RPCWebinosService and ServiceType to the global namespace when
this code runs on nodejs.

Jira-issue: WP-84
Change sessionId to instance property.

sessionId is now an instance property of RPCHandler. Helps discovery between
PZH peers.

Jira-issue: WP-84
Add RPC registry related functions to a seperate file.

Prepare to move the discovery related code to its own file by factoring
out the registry related code to its own file/module. This registry code
is to be used by RPC and discovery later on, both will have a reference
to the registry object. Also instantiate the in PZH and PZP for later
use.

Jira-issue: WP-84
Switch over to the new registry.

Use the registry code that was split out by the earlier commit.

Jira-issue: WP-84
Move discovery RPC code to service discovery API module.

All discovery related functions from RPC are refactored into the
service discovery API module. PZH and PZP instantiate the Discovery
themself and add it to the RPC registry.

Jira-issue: WP-84
Remove unused discovery related code from RPC.

Jira-issue: WP-84
Update rpc/registry tests

Fix tests after refactoring registry and discovery related
code from RPC and moving them to their own modules.

Jira-issue: WP-84
Merge pull request #82 from aldafu/WP-118-timeout-for-service-lookup-other-rpc-fixes

WP-118 timeout for service lookup & other rpc fixes
Merge pull request #88 from aldafu/WP-84-seperate-discovery-and-rpc

WP-84 seperate discovery and rpc
Contacts API test

Contacts API tests for local and remote contacts. Uploaded a jasmine version and a test-framework version where user interaction is needed.

Jira Issue: WP-132