Turn memory off by default when sleeping
Prepare controller for sleep
Add ability to have the controller sleep when no work is pending.

Wakeup is automatic upon scheduled task or reception of a MIB message
Fix formatting bug in rpc error handler
Add support for sleeping controller
Make all flash routines wait for completion of op

This is so that we cannot enter a state where the controller goes to
sleep and powers down the memory before a write operation has finished.
Add callback for deciding when to sleep

This lets users of task_manager decide programmatically when
they can sleep based on information that task_manager should
not know about.
Update to use new task_manager flags API
Add sleep handler callback
Always send a bus reset pulse on controller reset

This makes sure that all modules reregister if the
controller loses power for some reason or gets reflashed
Fix fsu to use new taskloop flags interface
Merge branch 'dev' of github.com:WellDone/MoMo-Firmware into pr-controller-sleep
Initial sensor API implementation.
Basic test harness, some bug fixes.
Fix persistent-state bug, confirmed working with test harness.
Create separate sensor emulator tool to log values repeatedly.
Significantly reduce memory use by (correctly) using uint32 instead of uint64 for memory addresses.  Also save off start and end addresses, rather than computing them from subsection indices every time.  Fix a bug introduced when memory_manager changed.
Merge branch 'dev' of github.com:WellDone/MoMo-Firmware into pr-controller-sleep
Fix some bugs and make the momosensor proxy more robust.
Remove hard-coded 11 address from GSMTool, use cmdln for argument parsing.