Updates and cleanup on APi call handling, session expiring, and the optional facebook login prompt behavior.