add API to get/set the maximum buffer size
fix https://github.com/mangui/HLSprovider/issues/34
use this API in chromeless/HLSProviderChromeless.swf, update HTML test page
various clean-up, remove global variables
use event to report playlist duration instead of getter