initialize state from config file or shared url (shared url not completely working yet)
adds jasmine unit tests