Cleanup and performance enhancements

Change data import strategy to processes differences in the import script instead of using CouchDB update functions, and to write documents using the bulk document API instead of singular PUTs/POSTs. Also update views to eliminate redundancy when generating XML4 documents for Desire2Learn.