Port over initial parts of application framework