Simplified the deferred slot implementation.
Moved the App class to the root.

This is needed for Elliptics server-side scripting support to build
successfully. Otherwise this header along with everything else in the
detail subdirectory will be left out during the dh_install(1) of the
libcocaine-dev package.