use director as router
use director to build SPA;(TODO: page manager)