Add more lightweight sample app. Move shared hardware/simulator logic into separate class. Add example tests.