Much refactoring. Preliminary Mac OS X support.

For iOS you now need to #import "BrowserIDController+UIKit.h".
Commented out logging