working isomorphic app with synchronous state loading. next: make it work with asynchronous state loading.