first commit
Add .gitignore for Atmel Studio projects.
Add basic implementation of reed switch and buzzer
Implement battery check and shutdown
Add partial implementation of I2C interface. Rename some functions, like system state access, for convenience.
Add full implementation of i2c interface and sleeping.
Rename main file to Main.c
Fix timer for non-critical loop.
Full implementation ready. Fix many small things in main logic.