The rest api appears to need entity&action specified as fnName, at least to work on Drupal. Provide it.
A bunch more updates - mostly indentation - to match PyCharm's idea of proper code styling.
Merge branch 'refs/heads/feature/rest-add-fnname' into devel
Merge branch 'refs/heads/feature/further-styling' into devel