Adding support for disabling of callbacks

Hello don, eford, 

Please review the following commits I made in branch 'jeremy-promisesOnly'.

b3b792c4325b21f93cea8850e89b733c320da6ed (2013-01-02 09:26:32 -0800)
Adding support for disabling of callbacks

R=don
R=eford