updated tests and re-factored login into method.
fixed bugs with youtube display
added fix for log out in php < 5.4.11