Merge pull request #983 from kwhatmough/next

Restore optimization, and starting on accelerometer changes
Remove simulated accelerometer on desktop. Use keys in longboard sample. This is part 2 of #835.