Added support for errors, added json API for build status, errors and warning as well as triggering builds.