Show filename & line number for file parsing errors

For most instances of file parsing, I've also added error checking for
the validity of each parsed key. This should help track down obsolete
stuff in mods.
Merge pull request #1152 from dorkster/logging

Show filename & line number for file parsing errors
Merge remote-tracking branch 'upstream/master'