Add the ability to exclude components/extensions from a build
Factor global variable stuff into own method
Merge branch 'develop' into cgkineo/develop