Updated code and binary.

Now save AP credentials for later use.