Added getPeerCapabilities function.
Added peer change callback.
Changed peer change callback.
Merge pull request #96 from TheTaz/92_js_injector

Added getPeerCapabilities function.