[Palette View] Enhence TextInput to include a label and better layout it

Normally text input is defined using a fieldcontain with a label
in jQM
[Live View] Fix issue #18: Preview rotation rotates the frame only, iframe aspect-ratio stays the same.
[Widgets] Support setting links to open pages as dialogs.

Added a Open Target As attribute to the button widget.
[Palette View] Add Navbar widget
[Layout View] Make sorting in Navbar work

Basically, items in Navbar has a "ui-block-*" class which needs to
adapt to the position of the placeholder. For example, if
the placeholder is the second item, its class should be ui-block-b
, other items should also change their classes according to their
posisitons.
[Layout View] More precise way to find siblings of ui.item

Sometimes items are not directly under the sortable element, we
should be consistent with the items option of the sortable.
Ask user to confirm deleting a project
Ask user to confirm when deleting a page
[Code View] Handle modelUpdated ADM events

This got dropped unintentionally during the plugin refactoring
changes.  Adding it back so code view updates if node properties
are changed.

Signed-off-by: Shane Bryan <shane.bryan@intel.com>
[Palette View] Add "active" property for Navbar buttons and iconpos property in Navbar
[Layout View] Fix the problem that when dragging Navbar button, the dragging item shows a dot
[Widgets] Completed count bubble for ListButton.

Added a countBubble property for ListButton.

BTW: I think the ListButton should merge into ListItem, the link should be a property for ListItem, as same as count bubble.
[Widgets] Add new Text widget, removing the need for Label widget

The Text widget supports rendering as HTML text wrapped in a variety
of tags (span, h1 through h6, label, p, em, strong). Also modified the
palette categories to include the new Text widget aand remove Label.

Initially, I supported plain text as the default, with no tag at all,
and also supported a line break with the <br> tag. But that requires
wrapping the plain text in a temporary tag so the layout canvas has
something to work with, and the beautify script did not deal nicely
with plain text. Also, the 'id' field doesn't make sense for plain
text. So eventually I decided to just get in this 90% of the
functionality that works perfectly w/o the border cases. Further
refinements would be nice, but are less bang for the buck.
[Widgets] Remove the deprecated newGroup and newAccordion properties

For an earlier implementation of the palette, the order of widgets in the
widget registry mattered, and we would display them in groups, starting a
new group or whole new widget set accordion when we saw the appropriate
flags. These are no longer used, so finally removing the cruft.
[Property View] bug fix that event change affect other view

Becasue event variable is a reference and change it will affect other
view to work unexpectedly. Keeping event reference unchanged in property
view can fix this issue.
Use bind() instead of one()
[Widgets] Fix boolean property values to use actual JS booleans
Merge 'john/navbar-item-wrapper' with master

Conflicts:
	src/js/widgets.js
[General] Fixes for pull request #44 - Navbar

- [Serialize] Fix attribute bug introduced in ba1b2650
- [Layout View] Use .ui-navbar in CSS selectors
- [Layout View] Minor CSS code formatting fix
- [Widgets] Simplify the navbar rearrangement code

Signed-off-by: Shane Bryan <shane.bryan@intel.com>
[Widgets] Add displayName attribute to widget HTML properties

In js/widgets.js there are some widget properties have displayName
attribute, it use for custom the label, but it is not functional.

See List.divider, OrderedList.divider, Collapsible.content_theme
and Accordion.content_theme in js/widgets.js.

The patch implemented the BWdiget.getPropertyDisplayName() to
make the attribute work.