Implemented custom API and isolated the script

- Isolated the user's script from the context of the extension, removing
access to the whole Chrome API for user's scripts.
- Implemented a custom API to JS Exec.