Categories

Created a restful API for categories
Not thrilled by this trailing conditional