Add php-coveralls to composer.lock
Fix some issues + mess detection
Fix cyclomatic complexity (was >10) by creating handler for file upload/move
Try to fix as much as possible elements from phpmd