Make sure old settings for 'accept_file_types' are not still picked up.
removed unneeded line.
Whitespace only
Refactored getToken / checkToken out of lib.php.