Refactored a few general functions from item edit view into utilities
Added categories to items
Fixed empty array bug by putting an empty string in the array # reason number #757 for ditching rails