Implement Rebuild server functionality.

I thought I'd had this in already.  Apparently not.