fix REST api in 5 and add sql namespace
fix a bug where some REST pages are getting 404s and remove the * wildcard REST names in the process
Merge branch 'master' into new-styles