Audio replay

This pull request implements nSetMediaTime to allow rewinding audio to the beginning after it reaches the end. So that we could play an audio more than once.

It also fix a bug regarding END_OF_MEDIA event.
When the audio reaches the end and sends END_OF_MEDIA event, BasicPlayer should change the player state from STARTED to PREFECHED and mark the player as stopped. But bug #502 makes BasicPlayer's Event handling thread fail to check the  END_OF_MEDIA event and BasicPlayer couldn't set correct state as stopped. I patched BasicPlayer temporarily to fix this bug.
To avoid timing issues, could you do something like https://github.com/andreasgal/j2me.js/pull/764/files ? (And while you're looking at it, could you review it and merge it if it looks good to you?)