Added postinstall and postremove commands

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes (no for v1.0)
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Related tickets | #21
| License       | GNU GPL v3

closes #21