added WeblitResource#toPublicJSON().
split WeblitResource tests into 3 separate categories.