Extract amr from 3gpp container

It made necessary changes to fix bug #728 from the j2me.js side.  Once gecko bug https://bugzilla.mozilla.org/show_bug.cgi?id=1111135 is fixed, we are able to use this patch to record audio to 3gp file and convert the 3gp to amr file required by the j2me media API.