Refactored away some agent state constants into methods
Removed machinestarted constant
Replaced static constants with instance getters in agentstate
stylecheck corrections
stylecheck maven plugin
Fix stylecheck on tests