California moves to embrace cryptocurrency and regulate it