Various fixes

Do recursive merge of default settings with passed options.
Binding "keydown" to document so it works also IE7/IE8