Refactor js.lazy to util.lazy and move IdentityReference to js package
to reduce coupling
fixed failing unit tests by making sure Key Json serializer was attached
to correct gson objects
minor refactorings