Move and unit test Maintenance module and commands

Bugs closed: AURORA-223

Reviewed at https://reviews.apache.org/r/18334/