I got back iOS-like headset control on the Google Nexus 4 (N4) such as solving the voice command problem from a locked phone with the headset button using "Headset Button Controller" from the Play Store.
I solved this one eventually, but there are many pitfalls. So, this is how I got it to work:
First, you can't seem to use the long button press for anything; so, don't use it. Second, set one of the other button press combos (I used triple press) to "Voice Search" and say yes to wake up dialogue box. Then, go the advanced settings and select "Run in foreground" and "Prevent Sleep Mode".
This actually get you to Google Voice Search from locked, screen off phone and allows voice commmands.
The other Voice control actions don't seem to work.