Split panel frame

Splits the main entry function so that I can get a Panel rather than a Frame, so I can embed this in an existing application.

This includes the lein 2 patch that I already pull-requested. I couldn't test it without!