WIP Simplified a lot the code.

I put more persistsent data and convenient methods in BaseRule (formerly Container). This led to more simple and semantic code, less prone to error.