Added ApiMonitor
Fixed scripts and return code of monitor class
added gitignore. Made ApiMonitor use correct return codes
rewrite of the monitor classes, numerous fixes