added a method to retrieve an instance by id
fixed instance state handling
Merge pull request #37 from planctechnologies/gns-126

On cloud instances, only show the green icon when the build process is complete
Merge branch 'dev' into gns-123