Small refactor of lib/core.js.
Small refactor of lib/core.js.

rabellamy/kalabox,RobLoach/kalabox,RobLoach/kalabox,kalabox/kalabox-cli,rabellamy/kalabox,ari-gold/kalabox,oneorangecat/kalabox,ari-gold/kalabox,kalabox/kalabox-cli,ManatiCR/kalabox,oneorangecat/kalabox,ManatiCR/kalabox