Fix json import
Move window objects into primitives

and centralize config on window objs
Don't permanently modify levelname