Implements "hhvm -r".

Resolves #2189