Add management command to receive bugmail on stdin.
Add logging for stdin mail
Fix broken tests.