h4x: Rewrite info command to be more featureful.

The code is a hack and needs refactoring. The branch is a hack and needs rebasing.