add json support for styles
add cose stub

@gerardohuck here's the stub for you
finish up #288, tested & documented
fix #287
Merge branch 'master' into navigator