Initial composer.json added, gitignore file added for vendor folder

Hello, as you've asked me to help you out with composer here is initial composer.json file. You will have to create account at packagist.org to work properly with composer and refactor code. Composer is a "must-have" for PHP frameworks and libraries :)
Read more information on getcomposer.org

Kind regards.