[Palette View] Fix the problem that SVG font not loaded.

As font-face url in svg only works when it's of full URI format,
I dyamically get the source of svg ,replace the relative URL
with full URI and set it to "src" attribute of image tag using
data URI format
[Palette View] Performance improvements to SVG loading

- Made regex a static member of the view so we don't create a new
  one on every loading of a new widget SVG.  It has no dynamic
  contents, so no need to make it when using it, just make it once
- Instead of serializing the SVG document, switched to using the
  jqXHR callback response, which already contains the serialized
  SVG in string format
- Also simplified the replacement string creation

Signed-off-by: Shane Bryan <shane.bryan@intel.com>
[Palette View] Fix invalid data-adm-node bug introduced in last commit

Signed-off-by: Shane Bryan <shane.bryan@intel.com>
[General] Enable extra handler when serialize ADM to HTML
[General] Enable extra handler when transform between ADM and JSON.
[FileIO] Add upload APIs in $.rib.fsUtils namespace
Merge remote branch 'donna/upload-api' into integration-20120627
[General] Fix Image widget rendering in palette

This bug showed up when we recently started using the inline
(data:image/svg+xml;) inline form of <img> src attribute
assignment to resolve font-face issues.

This SVG file contained newline and tabs in the middle of
two polygon definitions.  These whitespace characters get
stripped when serialized, causing two adjacent values to be
merged, one in each polygon definition, resulting in a bogus
vector paths when rendered.

Removing the newlines and tabs resolves this issue.

Signed-off-by: Shane Bryan <shane.bryan@intel.com>
Merge pull request #98 from zhizhangchen/integration-20120627

Status of pull requests included in this integration request:
- #97 OK, merged
- #91 OK, merged
[Layout View] Fix Toggle helper height while sorting

Signed-off-by: Shane Bryan <shane.bryan@intel.com>
[Widgets] Add a FIXME comment regarding using of getPropertySchema
[Widgets] Add support for data-mini attribute on many widgets

This is a jQM 1.1.0 feature that provides more compact versions of
many widgets.

Also moved the "multiple select" property for SelectMenu below the
more important Options.
[FileIO] Enable image upload feature in property view
[FileIO] Fix bug: upload dialog can not show on lower version Chrome
[Widgets] enhence jquery.extend to support array replacement
[Widgets] Deeply extend widget

Currently only properties are inherited when extending a widget,
this patch also extend other defintions of a wdiget. Be cautious
that all elements of an array should be specified in the child
type if you don't want to override them.
[Widgets] Remove unnecessary hierachy handling code

As each widget has all the fields extended with base widget, we
don't have to build hierachy when getting property fields
Merge branch 'extend-widget' into integration-20120628-2
[Layout View] Fix selection offset for several widgets

Signed-off-by: Shane Bryan <shane.bryan@intel.com>
Merge pull request #103 from zhizhangchen/integration-20120628-2

Status of pull requests included in this integration request:
- #101 OK, merged, with comments (#r1072658)
- #85  OK, merged