Router rewrite and support of singleton belongs to resources

- Rewrite of the router definitions
- Add`s ability to define singleton resource