Lightweight, scriptable browser as a service with an HTTP API