Move methods related to JS serializer to same class, which is not being
used anymore. Only committing work in case new mechanism for watching
variables in the client doesn't work for all cases, and we need to
explore serializer idea again. Fixes for qunit test that were failing