Pre-android sony's work as follows.
XML files define widgets (for both layouts).
Widgets in those could call "sandboxed" javascript methods.
The rest is javascript.
Some functions are implemented in binery code (c++ likely), and can be called from javascript.
Use igorsk's decompiler to decode bytecode into quite pretty javascript (it could also be located in so files).
It is available on the internet, but I don't remember the exact name for the utility :(.
Just XML might be enough for your purposes.
Existing PRS+ code allows you to hack into anything / replace any file.
regards,