Add a service to retrieve categories

new service, calls updated to the service, and add weight to categories