Strip leading and trailing commas for attributelists

* Without the patch contact_groups=",admins," would be treated as ['','admins','']
* Affects Issue #76