Moved existing code into legacy folder in preparations for the reboot of paint.js.