Adding new function protocols_get_all() to Purple class