Tweak pruning code.

- Fix prune code layout
- All console commands are now called xxx_cmd not xxxcmd
- Add ability to prune a directory from the online meta data.
- Add ability to select the JobType when pruning Jobs. (Old TODO).