Move source code to dedicated directory
Install test dependencies on Travis CI
Move modules into a library

Prepares for adding a test suite
Add tests for mime type guessing
Dump test log after tests
Pass input for file on stdin

Open files in Haskell to get proper IO errors.  Fixes test errors
Ignore exceptions from closing closed fds
Rename withlibmagic to libmagic
Handle all IO errors from closeFd
Derive MonadCatch instance
Add tests for package mime type verification
Export Message type
Add tests for JSON decoding
Reduce laziness
Lift assertions from Marmalade monad
Add tests for Marmalade login
Merge pull request #3 from lunaryorn/test-suite

Add tests