Fixed AsKeyValue function calling$ added session model and scripts; added Registration;