Add script to deal with SVG files per sample

replace_svg_object.py is capable of takinga directory with files
formatted and created by EMPeror.
Add tests for format.py and clean code

Remove unnecessary print statements and add exception ceration for the
main function that replaces and formats the SVG file.
Update credits
Change replace_svg_object.py to be per-sample

The script now works on a per-sample basis, this means that it can be
run in parallel for each of the samples that need a figure generated.
Address comments from pull request

The following minor changes took place
    - print -> parser.error, when there's a problem replacing the
      magnified figure with the non-magnified figure.
    - re-indent a line that did not have the proper indentation.
Change __license__ strings from GPLv2 to BSD
Merge pull request #2 from ElDeveloper/svg_handling

SVG handling