Add option for building WRT

Jira issue: WP-116
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
Added tests for deviceorientation API

Fixed a couple of bugs in the fake connector that might need to propagate to the rest of the connectors. Fixed missing argument on the rpc.js file.

Jira issue: WP-112
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
Merge pull request #90 from paolovergori/master

Contacts API tests
Remove unnecessary tests.

No need to check for properties twice.

Jira-issue: WP-135
Applauncher API starts default web browser.

Change launchApplication to launch the default web browser if the
applicationID to be launched is a http URL. Invoke errorCallback if not.

Jira-issue: WP-135
Add applauncher tests.

Improves tests for the server side on nodejs and add new test to check
if default web browser could be found.
Add client side tests for the browser. Checks for props, funcs and
tests launching the default web browser with Google.

Jira-issue: WP-135