Merge pull request #23 from Ogeon/master

Updated error handling, crate-type and .gitignore
Changed `extern mod` to `extern crate`, fixed use of moved functions and updated the tests to use `libtest`