rearrange code slightly. add simple 'test' script

i removed an unnecessary file read and added a simple script that posts a base64 svg for easy testing.