Added util functions for authenticated API requests. Might break code.