Assigning licences to assets

This patch contains the ability to assign licences to assets (and vice versa) and also some corrections for the licence grid.