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

Move main into widget package.
Fix build errors, due to moving main.
Merge pull request #188 from dankurka/move_main

Fix build errors, due to moving main.