Split up code into modules using Require.
Now uses some binding from Knockout.
Tries out using JQuery Promises - quite nice.