using regex to split deployment properties

added unit test
XD-1530 Reverting to use deprecated FileStatus.isDir() method

- This is necessary to remain compatible with Hadoop 1.x versions
XD-1533: Clean up failed deploy attempts

If a container fails to deploy a module, the admin needs to clean
up the /xd/deployments/modules/CONTAINER-ID/module path so that
another attempt can be made to deploy that module to that container.
XD-1532 Unregister MBeans on module start() failure

- When the module start() life-cycle method fails, the registered MBeans for the module should
be unregistered so that when the module gets deployed again, it won't see a duplicate MBean
   - Catch BeansException on module start() and destroy the context if exception thrown
      - Fixed on both SimpleModule and ComposedModule