Flight state buttons

Setup the buttons available on the flightControl fragment accordingly to the flight state. Fixes #500, and also adds the features contained in #1089.