[backend] implement remoteproject and project link handling in _history query
[backend] make loop detection work in _history link expansion
[api] make sure we PUT packages only once

The code used to save in between and then continue with flags and relationships.
[dist] start memcached before test suite