Old phpconsole.php translated into OOP version

Needs testing

Signed-off-by: Peter Legierski <peter@legierski.net>
Add is_initialized()

Signed-off-by: Peter Legierski <peter@legierski.net>
$this needs to be passed to shutdown function as a parameter

Otherwise shutdown won't have access to private vars (as it's added via register_shutdown_function)

Signed-off-by: Peter Legierski <peter@legierski.net>
Helper for CodeIgniter

Signed-off-by: Peter Legierski <peter@legierski.net>
Fix counter

It was using user's hash instead of API key to send data

Signed-off-by: Peter Legierski <peter@legierski.net>
Fix destroying cookie, change names in creating cookie

Signed-off-by: Peter Legierski <peter@legierski.net>
cURL error reporting

Signed-off-by: Peter Legierski <peter@legierski.net>
Merge branch 'refs/heads/feature-oop' into develop
Merge branch 'refs/heads/develop'