Dynamic file location

This commit implements a dynamic file location for a client side
and some other changes.

Signed-off-by: José Guilherme Vanz <guilherme.sft@gmail.com>