Suspend/resume/close/state added to AudioContext

Fixes #317 and #361 .