WIP #283

Removing jsonforms requires throughout most of the code.  Planning to
migrate that to a fixture for tests.

Use appinfo.getForm() to return a form definiton. This uses
`app_settings` property on the ddoc.

Tried to standardize the way we use the appinfo module a bit.

* changed appInfo = require(...) to appinfo = require(...)
* use sms_utils = require(...) not ksutils = require(...)
* where possible assign appinfo to a module level property and reuse
  that on private methods.

Removed some old debug code in the sms parser.

Removed previous work on forms HTTP API, extended app_settings module
slightly instead to support getting a form. Will migrate upstream when
finished and approved and update docs.

Get all settings:

GET http://medic.local/kujua-lite/_design/kujua-lite/_rewrite/app_settings/kujua-lite

Get all forms:

Include additional parameter of property name `forms` to a normal

GET http://medic.local/kujua-lite/_design/kujua-lite/_rewrite/app_settings/kujua-lite/forms

Then `JSON.parse(response.settings)` to get the forms object, forms are
available as `forms.{code}`.

Get a form:

Provide the full path on the app_settings object:

GET http://medic.local/kujua-lite/_design/kujua-lite/_rewrite/app_settings/kujua-lite/forms.ANCR

`JSON.parse(response.settings)` to get the form object.

Update a form:

Provide full path in JSON payload.

PUT http://medic.local/kujua-lite/_design/kujua-lite/_rewrite/update_settings/kujua-lite

'{"forms": {"MSBD": { "biz": "bang" }}}'

Remove a form:

Update forms property to null value.

PUT http://medic.local/kujua-lite/_design/kujua-lite/_rewrite/update_settings/kujua-lite

'{"forms": {"MSBD": null}}'
Fixed tests WIP #283

Removed `kujua-sms/views/lib/jsonforms.js`.

Added default forms to app_settings that are used by the tests.  It adds a tiny
bit of bloat but was the most straightforward.  Otherwise we need to mock the
app_settings init call to include the test forms.  Will possibly give that a go
next. I don't see anything wrong with having a few test forms available by
default.

`kujua-sms.utils.getFormKeys` API change:

Pass in form definition, not form code.

Old:

var def = jsonforms.getForm('YYYY'),
    keys = utils.getFormKeys('YYYY');

New:

var utils = require('kujua-sms/utils');
utils.info = require('views/lib/appinfo').getAppInfo.call(this);

var def = utils.info.getForm('YYYY'),
    keys = utils.getFormKeys(def);

There are many little annoyances still present in this code in the way it
works and in some of the conventions that have come about.

Removed msb*_example_data tests from the smsparser tests.  They were redundant,
not covering anything that wasn't already covered, and would require adding all
those forms to the default forms in app_settings.

We are still supporting `messages_task` property on the form definition.  We
should remove this from the example form YYYY from the tests.

Next up: remove json-forms submodule and related build code.
Merge branch 'develop' into custom-forms

Conflicts:
	packages/kujua-sms/kujua-sms/updates.js
Merge branch 'develop' into custom-forms
Removed json-forms submodule and ddoc build scripts #283

To clean your tree after upgrading do:

rm -rf json-forms
removed json-forms from travis install step #283
removed json-forms tests from build process #283
fixing travis build #283
added script to upload JSON forms to app settings #283
minor tweaks to load forms script #283
changed waitFor timeout on test runner to 6 seconds. #283
changed test runner max timeout from 30 to 60 seconds #283
Merge branch 'develop' into custom-forms
started forms upload screen in configuration #283
Merge branch 'develop' into custom-forms
added upload forms support to configuration #283
Merge branch 'develop' into custom-forms
Merge branch 'develop' into custom-forms
Add safety to schedule rendering
Merge pull request #523 from medic/custom-forms

Custom forms