rework runtime bindings
support inline manifest
add support for inline scripts
add manifest
sort code