Open links in the browser
Refactor api handling code a bit
Set config attribut on the api class instead of the instance
Add context attribut to the api