Added firebase HTTP support, fixed formatting