Add support for throws. Fixes #1
Add oneway support and add throw on server side