The getAttachment function doesn't allow the retrieval of attachments of a given revision; this patch allows this without -hopefully- breaking existing code:
Added spatial views handling.
Added handling of revisions by getAttachment (see issue Cradle's #198)
Changed version to reflect the fork.
This needs tests.