Added commonApp code (without history, need to figure out how to do that...

...).