Various changes

Fixed getSql methods of query classes.
Removed duplication of chained methods in the Model class.
Added getColumns method to SelectQuery.
Fixed setValue method of BasicTestGPIOInterface.
Used anonymous function to return unique id in SessionManager.