Adding functionality to make it possible to authorize an already existing Tweet Nest installation. At the heart of this is the new authorize.php helper page, but this commit also contains quite a bit of refactoring.