added the setup defines to config.mk for electron

This makes it more flexible to configure without messing with setup.h
Moved the electron config to a common folder

All corresponding libs and programs have been updated accordingly