Some small improvements to scripting. Made a small start to registering script bindings but nothing is definite.