Added a function to toggle fullscreen mode

Note that this is not the native osx fullscreen mode and simply
maximizes the frame to fill the screen.