Feature: split chameleon from pyramid

This builds on top of my pull request from https://github.com/Pylons/pyramid/pull/1109, and as such it contains those commits as well.