Allow composing the input filter into the ResourceEvent

- Allows composing a `Zend\InputFilter\InputFilter` into the
  ResourceEvent.
Inject the ResourceEvent with the InputFilter

- Added logic to getResource() to detect if an input filter is present
  on the resource. If not, it attempts to fetch it from the MvcEvent,
  and then inject it into the resource. The Resource now composes the
  InputFilter, and pushes it into the ResourceEvent during the
  prepareEvent() phase.
- Fixed CS issues.
Merge branch 'hotfix/46'

Injects the ResourceEvent with the input filter found in the MvcEvent, if present.