convert tabs to spaces and add comments
refactor php code and play a bit with users
Merge branches 'easyvista' and 'master'