Update security library and Key object.
Merge branch 'unified' of github.com:named-data/ndn-js into unified
Fix small bugs in security library. Sign/verify is not working yet.
In DataUtils.stringToUtf8Array, use new Buffer(str, 'utf8')

Change-Id: I575096b9e5c7ddb96893100de774e4ff930606de
For now, use DataUtils.toHex instead of toString('base64') until we make new Buffer work.

Change-Id: I017a4a46fb4f90d443b7bdff9250ceb3c394a296
Fix bug in Buffer constructor: Use obj.__proto__.toString = function, etc. so that the object's methods are properly assigned.  Use toString('hex') instead of DataUtils.toHex.

Change-Id: I75f0a9aae1dabd88f8dc08ba341aaa7bea36d60a
Include ndnProtocol.xpi in git files.

Change-Id: I74ad253435c7be4fff9d1231f07264a69516ff7d
Fix download link for ndnProtocol.xpi

Change-Id: Iddf1ce5e26efc8323f9e26433867d110d7d09828
In the constructor, if the data is already a Uint8Array, make a copy.

Change-Id: I2107e7abe1adbb5ed92826dd27fa8d6ec50006bd
In constructor, also check for ArrayBuffer

Change-Id: I6671bfc1ea5c6006c31c92f6fb918fdca09a360b
Use new Buffer instead of new Uint8Array.

Change-Id: Iaa9ca6ca3fc56a4be258d052b3295a839d4e2820
Rename DynamicUint8Array to DynamicBuffer.

Change-Id: I83e266763d119e43a1b526de3f60d924fedda526
Make slice not return a copy.

Change-Id: I75c83791eefab95fdff6852ba40aad33aba69a6c
Make slice not return a copy.

Change-Id: I1742bd7c01936c85538e588e6b0e40de6ff86d69
In Name.add, support ArrayBuffer, but make sure ArrayBuffer is defined.

Change-Id: Iff9ccbecbab92ab1edb4ddd68ffde1a34d75b4d2
Remove debug test code.

Change-Id: I3386a50ac51bcd8af6da67fcee5924a6da2cd47b
Make Buffer.slice check for missing second argument.

Change-Id: Ibefdbbbecfb9da13e8b1d97c190a7213126f5a12
Fix bug in slice: use this, not obj.

Change-Id: Id74f334ba8aaf99935585f7b3d4b25c8be1e83ac
Use Buffer slice instead of subarray for node.js compatibility.

Change-Id: Ia7cd30ae0651a46363ea99c50bd5e26dbcb8b949
Code style: No space after function name.

Change-Id: Ib42b58502b2096c2de4a613e151ed4f5eb95a0a3