fixed bug with dashes in database names; fixed auto-login failures on 5.6.1; now removes ALL empty folders (including blocks, packages, and themes) when that option is set; refactored some version code