Fix heap space issue and add rudimentary Circle CI support