Fix bug when loading keyboard kernel on start

Keyboard kernel is now loaded when switching on capture mode
and unloaded when switching off capture mode so that
the pthread_mutex lock error on FileChooser is do not happen anymore

Conflicts:
	dahu/core/app/scripts/dahuapp.js