move statics to top as per code review
oops repointed webapp example to Tomcat; changing back to JBoss
using simplified syntax for creating keys and sensors (i.e. static newKey(...) - see classes ConfigKeys and Sensors), and using TypeToken in Sensor and ConfigKey
code review, call it newConfigKey not newKey, and other misc clean-ups
Merge pull request #790 from ahgittin/misc

new static syntax for sensors and config keys, plus tidy
Adds checkSuccess and onFailure methods to poll feeds.

If checkSuccess(val) returns false onFailure is called instead of
onSuccess. If no handler for failures was created onException is called.
Existing entities' behaviour should remain the same. The HttpFeed has a
default success condition of 200 <= responseCode <= 399.

onError is deprecated in favour of onException, to make its purpose clear.
HttpFeed supports authentication

Supply username and password to HttpFeed buider. Uses httpcomponents'
standard mechanisms, so Brooklyn handles everything httpcomponents handles.
Extends HttpService to create servers requiring basic authentication.
Improve distinction between config keys and attributes in JBoss7Server
Enable AS7 management interface security by default

Adds MANAGEMENT_USER and MANAGEMENT_PASSWORD config keys to the AS7
entity. Username defaults to 'brooklyn', password to a random UUID.
Set NginxController SERVICE_UP feed to accept any HTTP response