updated arduino code to implement all the changes

also did:
- update unittest to cover getting a lot of data
- fixed post_changes to make sense
todo:
- write arduino function to do stuff on post request