partial code refactoring/cleaning. some comment added
Merge branch 'develop' of https://github.com/domino777/linCC into develop

Conflicts:
	client/config.php
	client/functions.php