[webui] replace project_or_package_link partial with a helper function

This allows much saner programming than in erb
[webui] rename patchinfo model to WebuiPatchinfo to avoid name clashes

Namespaces are fine, but somehow rails' autoload breaks them more often
than not ;(
[webui] remove distribution model