BlackBerry ditches CEO and accepts $1B loan from Fairfax, others