Tons of modifications. #1. #4

- Rewrote the model.
- Wrote a validation component.
- Wrote an ErrorType class
- Wrote a Request class, to detect the type of request.
- Moved controllers, models, views into their own folder.
- Wrote a Authorization and Session class. Authorizations is based on
JSON files.