Changed way to store the current user. Added constraint 'class' on TIUser parameter type.
Added new method to set the current user. Small refactoring.