fix getDuration buffer issue

Fixes issue with invalid buffer (refs #308).

Also adds new `togglePlay` method in the microphone plugin, updates version of bootstrap in the examples to 3.3.1 and fixes some documentation issues.