slapproxy: Add minimal hateoas support for cli

Add the minimum hateoas support required for the cli commands:
- `slapos service list`
- `slapos service info <reference>`
- `slapos computer list`
- `slapos computer info <reference>`

To enable hateoas, complete the slapos.cfg configuration with:
```
[slapos]
master_rest_url = <proxyaddr>/hateoas
```

Also: Fix some bugs and python3 incompatibilities in slap/hateoas.py.

See merge request !290
5 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
failed SlapOS-Master.UnitTest-Master

01:13:00

passed SlapOS.Eggs.UnitTest-Master.Python2

00:26:31

passed SlapOS.Eggs.UnitTest-Master.Python3

00:14:35

passed SlapOS.Eggs.UnitTest-Master.Python2

00:14:48

failed SlapOS.Eggs.UnitTest-Master.Python3

00:17:53