Merge pull request #4 from chrismcv/master

Support for component aliases
Performance fixes + some missing semicolons added

- cache regexp in `expand`
- `has` without additional function call and object creating each time
- remove some unused local variables
- a bit better compression with uglifyjs
Merge pull request #5 from korpirkor/master

Performance fixes + some missing semicolons added
fix definition for components that have a non-standard 'main' entry point