Some performance improvements with large stories and a fix for connector lines at high zoom levels.

Was trying the twine decompile from html feature with a large story - performance was quite bad on a core 2 duo windows machine. Decide I was bored and took a look. FYI I am new python and git so I apologize if my code or branching is odd.