Makde Rules serializable as simple, user friendly string.

Also added a Session class and updated the tests.