[api] trying to make the event class autoloading less fragile
[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
[webui] do not query the package issues again - they are in the database
[webui] do not query the API for home#index

Use model queries instead.