Misc changes.

* Change hg_prompt to just echo.
* Standardize function format.
* Save_hooks to do init add.