Review and cleanup the last commit by Antti.
Refactor pushd.coffee, otherwise it is slowly becoming unreadable.