registered states from config - git fix #39

In this way method register_state can't be used after get_state and/or
render.