Refactor. DRYs up resource parsing
Adds 'DirectoryResponse' and 'BmpFileResponse'