Add function for ensuring that a batch exists.
Hack around missing batch id when reloading a testing login. I don't actually think this works.
Possibly fix a problem with moment.js formatting?