Display notifications when creating a new database

Notifications are displayed for:

 - Creating database
 - Database created successfully
 - Create database failed
Handle a null or empty database name

If name is null then user cancelled the prompt so we
do nothing.

If name is zero length then display an error via
notifications.
Declare all variables in newDatabase at top of function
Fix inappropriate display of "Document saved successfully"

Background: If a doc is already loaded, the "Document
saved successfully" message appears when it is redisplayed
in the doc editor.

This patch modifies updateValues to check for changedAttributes
in the model and the notification is only displayed if there
are changed attributes.

Note that this correctly handles the case where a document is
saved that has no actual changes, as the _rev will be
different and so changedAttributes will still be truthy.
Display a notification if save doc fails
Merge pull request #11 from cloudant-labs/fauxton-notifications-savedoc-createdb

Fauxton notifications savedoc createdb