Settings tree fixes

Fix Less and RequireJS filters for new resolver/ctx/env API.
Fix a requirejs test.

TravisCI/tox tests are passing.