Added option to swap pane position

If the option is on, then vertical layout has code on top, output on bottom,
and horizontal has code on left, output on right.

Also, with code on top, changed notebook tabs to be on top too.