Minor tidying up.
Move the no dates link and datatables init to ui class.
Move the hiding of th eloading message to UI

I think that's enough shuffling around. On with debugging.
Include this when it is required
Fix indentation
Move moment dependency out of classes
Lots of cheeky debugging fixes