Merge branch 'hotfix/27'

Close #27
Moved whitelist logic to "getList.pre" listener so that whitelisting can
take place before fetchAll(...) is called.
Removed the type check since we know it will be a RestController.

Added the @var for IDE friendliness.
php 5.3 compatibility
Merge pull request #33 from michaelmoussa/whitelist-params-fix

Fix for fetchAll(...) not receiving whitelisted query params
[#33] CS changes/comments

- Import classes used in `instanceof` checks; do not use FQCN.
- Added comments about why we validate we have a resource instance.
- Space following `!` in conditions.
Merge branch 'hotfix/33' into develop

Forward port #33