save/restore run configurations

(cherry picked from commit 56270c571ed6113be6b6afd07986cdfdec8e00e1)
Lang EP for psi <--> String conversions

(cherry picked from commit bcd6ce97026a4d070b22c8d71ec57259aa5208bc)
java implementation for psi externalizer

(cherry picked from commit 5c0ec9d540a942502d5dfa0bd4f4005c0f84b452)
save/restore psi elements

(cherry picked from commit 773042b0a41967fa1ebf7253419136edf9bdee7b)