Fixes TextCorpus not having proper metadata info.

I've defaulted to returning the line number that a document appears on.
TextCorpora no longer raises exception on empty input file
Merge pull request #203 from cscorley/fix_textcorpus_metadata

Fixes TextCorpus not having proper metadata info (rebased)