Added categories on resource page

Test code now assigns a random value to the resource attribute to
differentiate companies and resources. Old Categories collection is now
two collections, CompanyCategories and ResourceCategories.