ERestController is compatible with php >= 5.1.6
Clear output buffer to avoid rendering anything else.
Replaced lcfirst to be compatible with php >= 5.1.6
Replaced filter_var function with native implementation from https://github.com/javazac/filter_var
Merge pull request #32 from kachar/master

ERestController is compatible with php >= 5.1.6