Scripting a whole bunch of actions
Tasker is your best bet for this kind of thing. It will allow you to setup powerful profiles for the kinds of tasks that you are wanting and will allow you to run scripts as well. It should be noted that a change that came with Android 2.3 (Gingerbread) restricted the ability to manipulate the GPS settings without Root, so Root would be required if you want that functionality.  You can try Tasker free for a week (Official site, Play Store).