Add RegisterAddon method

This also allows to send data in json format,
not only as url encoded content.