Rewritten the missions, request and API handling.

Other changes:
- The database class sets now the charset during connection
- The database class has now an method for escaping strings
- Added the “.htaccess” file
- New field “mission_create_date” in the database table “missions”