Fix image details parsing when a custom registry port is used

Implement first unit tests to validate these changes. Added test running
through tox for Travis-CI.

Fixes #4.

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>