Added remove action, refactored some bits

You can now simply say theme-manipulate [command] instead of
having to --command=whatever, which is kinda nice.

Also added some tests and did a few other things.