kernel: habilita construçao do kernel.

Signed-off-by: Francisco Prates <mad.kanie@gmail.com>
kernel: compatibiliza kernel com interface de core, para reduzir
trabalho de porting.

Signed-off-by: Francisco Prates <mad.kanie@gmail.com>
kernel: handlers devem ser exportados.

Signed-off-by: Francisco Prates <mad.kanie@gmail.com>
kernel: atribui instancia de Database para Auth.

Signed-off-by: Francisco Prates <mad.kanie@gmail.com>
kernel: session nao deveria ser global em set_current_app().

Signed-off-by: Francisco Prates <mad.kanie@gmail.com>