[mms] Add Horde_Url#selfUrlParams().
Move selfUrl w/ params generation to Horde_Core

Since we already need Horde_Core 2.2.0+ to fix the bug, might as well
move this code over to Horde_Core now, since it is globally useful.

See Bug #12058