syncbase.js: Partial tests and implementation of service and app
interfaces for the JavaScript syncbase.

This CL adds tests and implementation for creating and listing
apps and getting and setting app permissions which partially
covers service and apps parts of the syncbase client.

Change-Id: I16613d7d2998395e035a5d83a00de9e4913b5f80
12 files changed