First stab at modularizing lightopenid for scenarios besides flat php