php5-fpm-integration: Small fixes + refactoring
Added support for external repositories + refactoring