TemporaryBufferDevice, added missing return in writeData()
Callback, added support for custom functors

Callback now supports custom functors when using
Callback::setCallback(). A functor is a class with a operator() which
is called by Callback on invocation.