reworked responses functions to use passed in map, hopefully in line with how the parsing is done. Also added a utility function to return http content-type based on file type, and added vim file locks to gitignore.