First proposal of a rule system for the referee.
Added mimetype support to rule system.