Finish conversion to new API, add BrowserDetect.
Updates to .gitignore