Initial import.
Make rewrite domain configurable via CLI.