Added token endpoint
Added cors support