Adds field type "link", fixes several small problems

Field type "link" uses the standard wordpress link dialog.