More refactoring. Can now build images ( build log gets streamed to the page using websockets ).