Changed the View and Document methods to a Document<T> to make ID and revision tracking easier.