Clean up main and player.

Remove unnecessary unique_ptrs, and use binds instead of lambdas.
Missed an accidental new.

Memory leak!
Factor out RegisterCommands.