Ability to watch a running application

This is quite hacky, the API should be redone.