Added file removal support.

- Improved thumbnail generation - added progressive thumbnail option.
- Added a disabled file setting.
- Added the base of captcha system.
- Removed unnecessary code.