Qasm now properly parses quoted gate symbols
Got stripquotes doctests to work
Wrote a controlled gate implementable through a def statement.
Got controlled gates to work in def statements

Also added toffoli, and moved the defined gates to be evaluated before
the built-in gates, so they can be overridden.