Add support for HMonitor Jobtracker HA (for CDH4 MRv1 only) and some code refactoring
Minor changes: logging and file indent tuning