fixes #42, fixes #40. Recent changes to express makes content type to be present in file.headers['content-type'] rather file['type']. Also should make sure to support file uploads from local files.