Update RequireJS library in package.json

[#45324607]
Update md2d-node-api because of the RequireJS 2.1 new specification

[#45324607]

Change requirejs call to sync version.
Use sync form:
  var dep = require('dep');
instead of async form:
  requirejs(['dep'], function(dep) {
    (...)
  });
Update Mocha tests because of the RequireJS 2.1 new specification

[#45324607]

Change requirejs call to sync version.
Use sync form:
  var dep = require('dep');
instead of async form:
  requirejs(['dep'], function(dep) {
    (...)
  });
Add workaround to getRequireJS() function from tests helper

[#45324607]

New RequireJS assumes that it's executed in the browser environment
when it detects e.g. document global variable.  It can interfere with
our JSDOM setup, so hide this variable for a  while while getting
RequireJS.
Update Energy2D tests because of the RequireJS 2.1 new specification

[#45324607]

Change requirejs call to sync version.
Use sync form:
  var dep = require('dep');
instead of async form:
  requirejs(['dep'], function(dep) {
    (...)
  });
Update Vows tests because of the RequireJS 2.1 new specification

[#45324607]

Change requirejs call to sync version.
Use sync form:
  var dep = require('dep');
instead of async form:
  requirejs(['dep'], function(dep) {
    (...)
  });
Support "aboveOthers" option of the layout container

[#44817219]

When container has absolute position (e.g. "left": 0, "top": 0),
"aboveOthers" option can be used. It pushes all other containers
without this option below all containers with this option.

It's mostly important for developers I guess. It can be useful for
automatic adding of containers which should be always above other,
unknown containers (e.g. banner). Probably authors don't have to use
this option, as they know layout template in advance.
Fix a bug in the semantic layout, wrong local variable name

[#44817219]
Remove share, credits and about links from the HTML markup

[#44817219]

They should be managed by the interactive controller, not application.
Accept ready functions for "onClick" property in text controller

[#44817219]

Previously we were expecting that only string or array of strings can
be passed to the text controller as a "onClick" callback. Now, also
ready function can be used. That's convenient when we create
components e.g. inside interactive controller and we expect
flexibility for these functions.
Setup banner links from the interactive controller

[#44817219]

Move logic from application.js to the interactive controller. Now
these links are also managed by the layout system, what clarifies
a lot of things.

Note that this is just an intermediate step. Also panes should be
moved to the Lab library from the application.js.
Provide 'inherit' function (classic inheritance implementation)

[#44817219]

Usage:

 function ParentClass(a, b) { }
 ParentClass.prototype.foo = function(a) { }

 function ChildClass(a, b, c) {
   goog.base(this, a, b);
 }

 inherit(ChildClass, ParentClass);

 var child = new ChildClass('a', 'b', 'see');
 child.foo(); // works

 In addition, a superclass' implementation of a method can be invoked
 as follows:

 ChildClass.prototype.foo = function(a) {
   ChildClass.superClass.foo.call(this, a);
   // other code
 };
Add Basic Class dialog, simple wrapper around the jQuery UI Dialog

[#44817219]

It provides some useful defaults and convenient API.
Implement About Dialog and Credits Dialog in main Lab library

[#44817219]

Instead of using application.js for that.
TODO: cleanup application.js when all dialogs work fine.
Improve CSS styles of new About and Credits Dialogs

[#44817219]
Update Almond to 0.2.5 version

[#45324607]
Add Mustache library as a dependency, configure it for RequireJS

[#44817219]
Configure RequireJS Text plugin for MD2D and Lab builds

[#44817219]

It will be used to load Mustache templates.
Implement Share Dialog in the Lab library (instead of application.js)

[#44817219]

Also change slightly interface of the Interactive Controller. Note
that new Share Dialog uses Mustache templates and simple inheritance.
Fix a bug in modeler tests introduced during rebase conflicts resolving