Nitdoc requirejs

Made some cleaning on the nitdoc JS. All JS plugins are migrated to JQuery widgets. JS is now loaded lazily.

See commits for more details.