File management - part 1

Added the beginning stages of file upload management. MIME type
validation and size checking added.