Added API login and made it compatible with ShareJS through cookies session and made blame function compatible with the api