A framework for protein and membrane interactions