Token middleware and handling code for pyramid apps. It uses mozilla's tokenlib and is the first steps towards OAuth.