gundam: Move popupMenu and cockpitView methods to script for ReZEL

This functionality is tested in previous branch and backported
to master, so it's known to work well.