Moving phalcon loading into its own thing