Bugfix for issue #4

If PHP version >= 5.3.0 preg_replace_callback is now used to replace cms://idcat=XY and cms://idcatside=XY