Update main.c

Fix typo from mplabx in config name
Update battery.c

Fix overflow since autosample_wait is only 5 bits.
Merge pull request #68 from timburke/pr-support-pic24FJ64GA306

Switch mainboard code and bootloader to run on new hardware
Merge remote-tracking branch 'upstream/dev' into upstream/multisensor
Add pulse counting code to multi_sensor_module

Upon reception of an RPC, a flag is set.  task() then checks
for that flag, enables the pulse counter (including powering the
flow sensor if attached) for .5 seconds and counts the number of
pulses.  The count can be read by a separate rpc.  This is implemented
in 'multisensor pulse' to read a single value and 'multisensor pulse -c'
to continually acquire and read values.

Voltage is turned on before the half second starts and turned off after
the half second finishes automatically.