Add useful extensions.
Add "Global.cs" to gather literial constants.
Add two interfaces to make type-checking stronger.
Extract frame validation logics into "FrameValidator.cs".