First run at tablet support

Not yet tested; might need to adjust layouts.