Added debug panel and refactored Phalcon Module code