Added file features

Added the ability to:

-Set content-type header by choice, instead of sending file as raw text
-List directory contents in the case of a valid path but no filename