api,build: store list of rpms in DB

latest dock is capable of showing which rpms are installed in provided
image; therefore it sends this information when build successfully
finishes

I have created generic relation from Content to rpms which may extended
in future to jars, python packages, ...
Content and Image are linked M2M