[REST] format options overhaul

* allow /rest/tx|block/<hash>.<format> allong to /rest/tx|block/<hash>/<format>
* don't use binary as default, set format as mandatory unless list available formats