Changed the command-line flags to write to a local file and push to the device instead of echoing from the command-line.  That eliminates our need to filter them and deal with weird escaping issues for more complicated flags (like the UA string).
Fixed the unit tests
fixed whitespace issues that got introduced
Fixes based on code review feedback
Merge pull request #207 from WPO-Foundation/flags

Change how command-line flags are passed