Honour "allowExternalStatus" in TeamCity, be more generous with all-green, fixing fatal bug, work with Intellij 13

Hi Tom,

Hope you are well. You might remember me as Davie's friend from various trips to the Magpie! 

We're using Ci-Eye at work but we never get to see it go green because there are always builds running and we have some non-test style builds in the project which can go red so I've made some tweaks to honour the "allowExternalStatus" flag in TeamCity configurations.

There seemed to be a fatal bug which meant that observation agencies were destroyed before ever being updated with the actual build status - this meant the monitor was forever grey. I've fixed this but you probably want to check this behaviour more carefully (probably came about from the plugin changes).

I've been more generous with all-green as well. We always have builds running during the day so we never get to see our all-green image. I've changed it to go all-green if all the currently running builds are green as well.

Also Intellij13 treats resources differently. I updated the iml to reflect this (otherwise the plugin structure won't work and you can't run it locally).

Cheers
OIiy