handle namespaced models

- updates for processing namespaced models
- remove ambiguity in named routes in CRUD operations
- a few tweaks to maintain ruby 1.8.7 compatibility