buf-ws-load & buf-ws-save implementation

to reset the state after Emacs start-up
code relocation & naming fix

all internal functions start from the 'bws-' prefix public ones from
'buf-ws-'