Load plugin main and events separately.
Merge pull request #25 from darkowlzz/newMain

Load plugin main and events separately.