Usermanager import/export fixes

Original inspiration FS#2884, using str_getcsv() requires PHP 5.3 ahead of DokuWiki's states PHP requirement.

That change is still to come.  Currently includes some bugfixes and improvements for testing + basic unit tests for import & export operations.