Rename beforeInit as onload and afterInit as init
Merge pull request #2 from dancallaghan/init-methods

Rename beforeInit as onload and afterInit as init