Refactored browser module and request. Added env module
popup is workings. Lots of bugs