remove debug logging
fix a bunch of rails upgrade errors, forms etc.