Added nested? method which returns whether the resource is a nested one
Implemented a more elegant way to form prefixes
Call super in resources without the resource because otherwise it always overrides the path option. Instead set path to name if path is not set. Don't need to check for nested resources anymore