Move main into widget package.
Merge pull request #187 from dankurka/move_main

Move main into widget package.