Add edit category

I think this is done. I've got a bunch of tests there also.