Fix routing for work with dirs, namespaces and version in url.
Merge branch 'rest' of github.com:ascariandrea/framework into rest