added avg cost/unit function
added searching in table of inventory
update in apply function
update in images function added deletion of image in server
Merge pull request #16 from Gryphyn23/master
-- commit conflict