Bug 880330 - Refactor crypto to use the new options API; r=bholley