Create console.class.php

Implementing a class for using in the console