added logout to instagram.class

also better login/logout for facebook.class