[issue #6] Moved event flow into BaseRouter#dispatch().
[enhancement] Created RestRouter class.