Merge pull request #20 from trollkarlen/master

try to be smart with link_target param
initial presence implementation

Signed-off-by: Robert Marklund <robbelibobban@gmail.com>