Bug fixes, clean-up and extra comments

Added extra user agent string for identifying BB10 devices; swapped
inbuilt JS timeout functions for Angular's $timeout; fixed race
condition bug where the 'flush' would fail during very rapid streams;
added a few extra comments.