Add singular resources, automatic action and controller defaults

- Adds singular resources.
- Adds sub route action/controller defaults.
- Fixes issue with context switching.