fixes to address issue #9

Via suggestion and investigation from @mikeworks, found a bug with file
extension handling and an area for improvement with extension/filenames.
All uploaded files are now lower-cased when saved