add common code

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
add debian template

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>