Wonder if this could be fabricated to make a desk for two plus shelving above. Industrial Chic: Ideas for using industrial pipes to decorate your home (like this awesome DIY shelving unit!) Image via A Beautiful Mess - .
a recessed nook becomes a headboard for the bed. I think I'd take the nook all the way to the ceiling to avoid it looking like you put the bed in a repurposed closet; and put the ledge up higher, so that you can recline against the wall