Removed closing tag and whitespace as it was causing headers to go early
Changed cookie access to use CodeIgniter input class instead of direct access
Merge pull request #1 from killfall/fix_early_headers

Removed closing tag and whitespace as it was causing headers to go early
Merge pull request #2 from killfall/input_class_cookies

(Security update) Changed cookie access to use CodeIgniter input class instead of direct access