Added the add credential window, and made the whole thing pretty much work.