Fix NPE when opening change in browser

Store and retreive the legacy change number in the database so we can obtain the change URL in the changes list.
Fix copyrighting

Change-Id: I9abcd415e93bb822be2dfcdde112d9dfafbd1c67