Replace tigger_error with exceptions for easier recovery
Correct contributor name in files
Add a template type argument to allow js.php and similar
Merge pull request #53 from scan/master

Replace trigger_error With Exceptions For Easier Recovery