Define dependencies in composer.json

Composer has support to require PHP extensions. I added mcrypt and mailparse so this lib won't install without these extensions.