Added extraction of window id
Added experimental version

Two functions for checking focus and an implementation of sync_with_i3,
as seen in the testsuite (hopefully functionally equivalent). There is
also a script for test session for that. Makefile updated accordingly.