Why are you reimplementing Catalyst/Jifty/Rails and then building an app ontop of your new stack? That sounds like a waste of time. Build your app ontop of an existing stack or have a good reason to make your own.