Package name changed for common persistence. Moved more peristence calls
to use common logic.
Added license file.
Updated device management to use new event APIs.
Added code to ensure that Mongo indexes exist. This takes care of the
case where we start from an empty database and use the user model
initializer.
Added alert level field to alert persistence.
Updated to use new search package structure.
Adding support for device assignment state.