Added support for specifying interaction handlers for nifty in a build function.