functionised chem alarm code

added install script
chem is now a seperate file from the alarm logic
added database tables for info and offsets
added missing dependancies
changed message queue to use exchanges