adds imageEndPoint and debug switch
sorts issues out
removes uneeded public files
adds minimised js