Added ability to query for current state at any time
Added a promise for when the plugin has loaded
Fixing a couple of issues with my previous commits
Fixed an issue around the handling of the promise
Merge pull request #1 from perchten/master

Added function to query for current state; Added promise to allow function to wait until plugin is ready.