Load TroopJS bundle properly from an AMD loader.
Prefer config.packages over config.paths.
Merge pull request #69 from troopjs/feature/requirejs

Added AMD package main to load the sub modules properly from RequireJS.