added middleware and registerResource
Merge branch 'master' of https://github.com/vestimir/Finck