First implementation of a mode class.
Bonus::loadAll can now take a regular file as argument.
Fixed a linking error about global variable modes.
Fixed a bug in Mode.
Fixed a bug in Map.
Adapted the architecture to use modes.