Casecommons merge

Since it is widely agreed that the Casecommons fork has been better maintained up until now I went through as carefully as I could and tried to pull in all the changes they've made. I would like a few people to try it out before I merge it in.