Added several helper functions for sessions, flashdata and URI

Found myself using these a lot so added them as helper functions to the parser_helper.php