Working on better handling of variables and url init and state
Worked on variable initilization and sync to from url, #772