Simplify in application foreign keys

Signed-off-by: Michal Čihař <michal@cihar.com>
Move version formatting to toplevel module

Signed-off-by: Michal Čihař <michal@cihar.com>
Move requirements module out of trans app

Signed-off-by: Michal Čihař <michal@cihar.com>