Add component support
Add "main" entry point
Merge pull request #3 from RobLoach/component

Add component support