Fix issues with checkin

I really need to start adding tests, these changes were tested against
Alfresco (but without any content to the document, so who knows what
broke there)
Closes #23
Version bump to 0.3.5
Regenerate gemspec for version 0.3.5