New: more changes for require.js implementation

Preloader wrapper class and accompanying changes to facilitate its introduction.
New: lots of documentation!

Effectively resolves #10.