Improvements and tests for Mine (also fixed cli metadata test)

Dealt with exceptions better.
Wrote tests.
Made mine be able to accept input from stdin. (closes #44 )
The iacli_test_item on the archive changed, so I changed the test_ia_metadata to match it again.

In Mine: Although I used it as such, I'm not 100% sure that LoopExit is only used to complain of an empty queue -- it looks like it, but I couldn't find anything explicitly saying so.