Fixed some bugs where dialogs weren't restored properly when rotating the screen.
Also improved the landscape layout of the substitution editor for normal screens.
Fixes #116

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>
Added integrate and derive buttons, fixes #112

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>