added ephemeral store
ephemeral store actually stores stuff in-memory
fixed code and tests for core
cleanup
moved over location.origin fix from master

also needed by IE