https://github.com/cjauvin/little_pger
I have been using this for myself for quite some time, but feedback would be very appreciated!
Edit: A cool thing about it (I believe) is that it provides an "upsert wrapper" which makes use of either the new PG 9.5 "on conclict" mechanism if it's available, or an "update if exists, insert if not" two-step fallback, for previous versions.