Fixes #263 - Refactored Foreman to use correct singular and pluralization of medium/media
Fixes #14; this adds database index to make host, parameters and reports table perform better