Added document service, page generator, index service, and some additional tests