Add simple debugger for kaa applications

If the environment variable KAA_DEBUG is set the application will
open a unix socket for debugging. The kaa-debugger in tools/ can
be used to get the trace of the running application or connect to
it with winpdb.