Hi all,
Here's an interesting but not-so-serious attempt to implement a two-way peg in Bitcoin Script.
https://gist.github.com/RobinLinus/1102fce176f3b5466180addac5d26313
-Robin