Impementing resource upload use case.

Fixed some of the properties and methods of the entities.
Reviewed the store method of \Foundation\Resource.
Added a new mysql script for the creation of the database.
Modified index.php.