a lot of improvements, separating the browser from the core, adding the function aapi_create_url and so on