tidy up endpoint files - pull out logging code that doesn't comply with core standards.
tidy up externallib with coding guideline stuff
coding guideline stuff