cleanup: improve consistency, naming, spelling fixes, comments etc.
cleanup: improve consistency, naming, spelling fixes, comments etc.

rchavik/simplesamlphp,rchavik/simplesamlphp,rchavik/simplesamlphp,rchavik/simplesamlphp