We need to write some bluetooth firmware which will run on the nRF51822 and do the advertise protocol stuff to collect the SSID and password from the user.
It should have a low power mode so that when the system isn't expecting anything that we shutdown the processor as much as possible.