[graphics] naive rectangle API support
[graphics] add rect to graphics test
[graphics] rect js bindings