Fix audio encoding issue 

Java byte array wrongly cast to an array of short int's.
General cleanup and add audio_policy.conf.

Change-Id: I8a1f95f1885fe74ae10d64ea4247b70eed13757a