initial implementation of monit configuration generation per instance

also: return 2 for basic errors
some improvements to initial monit generation stuff