Fixed state bugs which caused StreamFragment and StreamService to be out of sync. Fixes #8 and #7