Update helpers.php

A patch for when people are using nginx (or any other webserver) instead of apache to serve Taskboard. This adds an helper function from php.net and replaces the apache_ functions with the generic getallheaders, that is supported since php 5.3.