Use requirejs via node

For now, need to link requirejs manually between node_modules and lib.
Grunt will do the work later.
Configure requirejs and create app

Empty for now, will migrate current main to that later.
First step in building a deployable
The video was not visible anymore

Was removed from app because the build didn't work with it.
Use connect to serve the videos folder.
Use requirejs

Jquery, jquery-ui and jstree are loaded by requirejs.
Css are still loaded via html link.
Copy main to app constructor.
Seeker doesn't work.
Fix concurrency issue between video and seeker

When video's durationchange event was sent before seeker was created, no error was raised but seeker was not initialized correctly.
Seeker loads the video after it's created now.
Add slider for selecting interval

Make it disabled and set its min/max and values when loading and double click on a chapter.
We be invisible on those action later.
Single click on chapter set interval slider

Enable the slider and give it correct values.
Display selected chapter times

And change the values when interval slider changes.
Get video only once
Store chapters in a custom format

Convert it to the jsTree format after.
Switch to Express

To handle any request.
Try to use ajax to fetch the tree

Works but can't process the response to use a different format server side.