Run the History persister only on the leading server.

(02:59:39 PM) wsorenson_hs_: i think some of the managed stuff needs to only run on the master
(02:59:54 PM) wsorenson_hs_: for instance the history persister

this changes the persister to only run on the leading master.
Remove @Nonnull from primitive fields
Merge pull request #365 from hgschmie/run-persister-only-on-master

Run the History persister only on the leading server.
Merge pull request #366 from hgschmie/primitives-can-not-be-null

Remove @Nonnull from primitive fields
use proper delete  function
Merge branch 'master' of github.com:HubSpot/Singularity
Move static resources into /assets subfolder.

Remove the weird "/static/static" folder.
Move the Singularity UI to a special "/ui" resource.

This frees up the root resource to be used for other things.
Make root resource configurable.

Add a new flag in the ui section: redirectRootToUi: true / false

If true, accessing the root URI of Singularity will redirect to the UI. If false, no redirection will
happen (and whatever other resource is configured for / will kick in. By default this is 404 (not found).
fix errors found in review
Add metrics for all JAX-RS resource endpoints.

This exposes metrics to the internal metrics registry.
api-docs rework
add grpn internal maven deploy
Another stab at handling InterruptedExceptions.

Minimal patch to allow for handling exceptions out of exists() and checkExists().
Change MesosResourcesObject to be resource agnostic.

Replace hardcoded resources with generic code.
Factor out all the little thread pools.

Factor thread pool management and control into guice injected, managed pools.
Use generic resource allocation instead of hardcoded cpu, memory, ports.
remove spurious class
fix 2
Add generic attribute matching to Singularity.