add AutoLoader register function
remove __autoload function from framework and switch to new implementation
Merge pull request #573 from andrewmman/fix/issue-436

Fix/issue 436