Fixed a problem with MIME parsing and started moving all integration tests into separate module.