Implemented a cptbox-compatible sandbox class for wbox.

@Xyene please implement resource usage.