added optional media constraints
added initial WebCrypto
made it real typescript
Revert "added optional media constraints"; that's for a different branch

This reverts commit b0789b72ddf57075da7771dd2cf3a51646e6fba4.