nitdoc: add --shareurl to link external share files

Make it easy for share development

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: introduce require.js a JS module loader

require.js is an open-source implementation of the
Javascript AMD API.

The Asynchronous Module Definition (AMD) API specifies
a mechanism for defining modules such that the module and
its dependencies can be asynchronously loaded.

This is particularly well suited for the browser environment
where synchronous loading of modules incurs performance.

require.js also includes cache control on client side.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

Conflicts:
	src/nitdoc.nit
nitdoc: load js libs from require.js

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: make base64 JS module require.js compatible

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: create js module utils

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: refactor Nitdoc.UI JS module into ui plugin

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: refactor Nitdoc.QuickSearch JS module into quicksearch plugin

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: refactor Nitdoc.GitHub JS module into github/* plugin

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: move folding facilities to its own plugin file

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: move clipboard facilities to its own plugin file

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: move filtering facilities to its own plugin file

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: introduce JQuery.UI

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: migrate folding to jQuery.UI widget

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: migrate clipboard to jQuery.UI widget

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: migrate quicksearch to jQuery.UI widget

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: set timeout on keypress to limit quicksearch overhead

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: migrate github loginbox to jQuery.UI widget

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: migrate github commentbox to jQuery.UI widget

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: migrate github commitbox to jQuery.UI widget

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitdoc: display right location for empty comments

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>