More handle error checking

Cleaned up the a2_Get*() mess; removed a2_GetVoice(), which was
only used from a2_AudioCallback() anyway, and added refcount
checks to the remaining ones.

Redesigned a2_GetStream() so that the stream API can aquire and
return proper error codes if give incorrect or invalid handles.