Throw exception instead of returning EmptyObject.

Close #131.
Merge branch '131-TemplateMissing' into daily
Merge branch 'daily' of github.com:g105b/PHP.Gt into daily
Merge branch 'daily'
Update startTime to use Session class
Simplify serialisation.
Remove debug statement
Add responseObj to json responses.