started authentication, made some fixes to chrome extension prototype