I've cleaned up the code and added some rudimentary installation information and uploaded the code to github.
The code is available here:
https://github.com/ollej/pratThe only working implementation at the moment is the "Pet Prat" version.
An extra script is also needed for the UBB.threads installation to handle longpolling and json for the messages, as well as user information.
Here is a screenshot of the application running on an iPhone 2G (sorry for the Swedish):