Moved the code to get the authentication token into its own function
Moved the code to get the authentication token into its own function

tjcunliffe/hoverfly,tjcunliffe/hoverfly,SpectoLabs/hoverfly,tjcunliffe/hoverfly,tjcunliffe/hoverfly,tjcunliffe/hoverfly,tjcunliffe/hoverfly,SpectoLabs/hoverfly