Merge pull request #1 from bouk/master

Tidy up the code a bit
Don't lock the VM
Don't block VM when sending
Add msgsize method
Bump version
Fix typo in test
Add to_io method
Don't segfault if initialize does not get any arguments