[Mac][WebKit2] Move action menu code into its own file