Fix paste IntegrityError, fix tests, add facebook social auth hash hack