Add callback config to the web and applications method

By default, if callback is omitted, the application is just detected and
added to the list. If you provide a callback, you should add the
application yourself.