Add support for custom main function
Merge pull request #1 from asphxia/custom-main-function

Allow for custom dispatch via './src/main.sh'.