Port of phpbrowscap to Kohana