Several changes for version 1.3.1

* Increment version to 1.3.1
* Add entry point security
* Switch consistently to ``__DIR__`` constant
* Improve file documentation
* Add CHANGELOG.md

Change-Id: Ia5e5febf071d27c475a0a09faec71b39ec4408a0
Merge "Several changes for version 1.3.1"