increased php execution time, minor refactor repetitive code

Increased php execution time limit (for those of us with slower machines)
refactored repetitive foreach ($fields AS &$field) to separate function call --> $this->add_stream_fields($fields, $template)