[Feature][Processing] Headless

To use QGIS Processing in python scripts out of QGIS.
The changes made concern the dependence to legendInterface. In cases
where the interface.iface is null (None) QGIS Processing uses the
QgsMapLayerRegistry instance.