This shouldn't be very hard to do, so let me see how i can implement this.
Frank
If you do implement this could you set it to switch to access point mode if there is no WiFi connection?
This solves two problems:
1. Initial setup can be done over wifi and you can easily connect to a new network eg. connect to access point and enter WiFi details.
2. Take it out of the house and boot up on battery connect to access point and enjoy.