Refactor main after adding debug server.
Refactor main after adding debug server.

Signed-off-by: Nagapramod Mandagere <459b9f2da98a4f81cc141b18707e9a2669e5cf9c@us.ibm.com>

cloudfoundry-incubator/volman,cloudfoundry-incubator/volman