Replaced filter_var function with native implementation from https://github.com/javazac/filter_var
Checking credentials is moved to dedicated method.
Merge branch 'checkCredentials' of https://github.com/kachar/RESTFullYii into checkCredentials

Conflicts:
	components/ERestController.php