File permission option for file consumer

This change will allow the user to pass an optional "filepermissions" parameter to the file consumer, which will be used instead of 0777 on the chmod().

The parameter must be passed as an **octal**. Following to same conventions as the [chmod() function](http://php.net/chmod)