jsgui: Clear datatable so no duplicates when clicking between policies
Moves configuration of Backbone.View.prototype from router to view.js
jsgui: Adds generic modal and config key input views
jsgui: Attach new policies to entities

Basic implementation. Need to know the type of the policy.
Rework policy config editing

* Uses generic modal view rather than managing a modal itself
* Improved error display
* Shows default values in policy config table
* Adds Brooklyn.view.showModalWith(View) shortcut
Simplifies WebApplicationException class
Build produces Git SHA 1 and branch name metadata

Incorporated into
* manifests as Implementation-SHA-1 and Implementation-Branch
* REST API at /v1/server/version.
* jsgui (only sha-1) as comment in index.html
fix semantics for masking error; it was the wrong way round!
tidy osgi logging following code review comments in #109
add builder for LocalManagementContextForTests and use in more places to speed things up, also adding conveniences for the BrooklynProperties.Factory.Builder
fix ha split brain test problem, and better logging for ha
restore visibility of static methods used in downstream projects
fix backslash in yaml blueprint
prefer 64-bit images (it makes sense, and without this it can sometimes pick a 32-bit os w a 64-bit hw, e.g. minRam 4096 in AWS VA, gives ami c68150ae on m3.large);
also include the new ubuntu lts (14.04) as a slightly preferred;
and a bit more jclouds template logging (previously we did not log the templateBuilder)
code review comments on #113
This closes #113
prototype of service_up being derived from service_not_up_indicators
add WhenFunctions which allows `Functionals.when(false).value("F")` approach to building up functions
add a new "updatingMap" enricher which helps when multiple enrichers contribute to a map, and use it for the new chaining of service_up behaviour
minor test utils fixes, including `assertThat`