Use a String enumeration for Contact gender (closes #21)

Also rename "sex" attribute to "gender" as this is more consistent
with vCard format.