Also adds hardware decoding to nodejs and jni APIs. Change-Id: I2a89f2d9e09b597df0ec449e69e8e7b84bea5552