Massive refactoring & script arguments

This refactor the whole code, replacing the (long) set of "if" with a (small) set of instructions, using maths over unicode instead of enumeration.

This also adds the ability to get the clock for any hour, passing arguments to the script.