Better abstraction for long-term maintainability. Moved file globbing from cli to core to make JavaScript api more useful. Bumped version to 1.1.1.