Calculate using moving averages of voltage readings

Also refactors config of KEEN_* macros into separate include.