cleanup agent code, added uid in amd request to agent

Change-Id: I68ab3d6c76391d9dd09289f2e1bec315ad93bed1
Merge branch 'tizen' of git.vannes:/srv/git/gitcache/github.com/eurogiciel-oss/aul-ng into tizen