Modifies .joints.py / generalization of showDialog / .gitignore added

- .gitignore file added. So now Github doesn't try to commit compiled
files.
- fixed a problem in joints.py where new writes weren't working because
the destination folder didn't exist
- generalized the showDialog function to accept buttons and return the
user input