Remove trailing whitespace
Fix action URL
Fix redirect URL
Remove unused code
Add access to resource component
Distinguish no resource and empty resource
Merge branch 'sharils' into wip