allow xdo_free(NULL) without segfaults
constify display argument in xdo_new() since it will not be modified.
bump major version due to API overhaul (including function name normalization)
Merge pull request #16 from dkg/master

minor updates, referenced from the mailing list.