clean up APIs.

'Id' means symbol.
cleaning up APIs of Settings.
cleaning up APIs of FrameType.
exporting only necessary ones from Types.
implementing fromSettings.
fixing JSON.
updating test cases.