Finished batches JSON and home page HTML. Added first set of tests.