I DID NOT COME UP WITH THIS IDEA, AND I DO NOT TAKE CREDIT FOR IT
I saw one of these at a customer's house and thought it was pretty awesome. It works just like the picture above but there were a set of legs that were attached to the middle shelf (when standing) and held it up from both sides. It would either be a good size table when laid flat, or a bookshelf when standing up.