Fix old pinet

This fix updates most of the client JavaScript files and radically updates the python driver code