Use proper write_html_foot() function.
Add missing JavaScript library. Extrated from https://github.com/nconf/nconf/blob/master/include/js/jquery_plugins/jquery.nconf_head.js
Merge pull request #1 from logoff/master

Some bugs solved