Card library

Signed-off-by: THE DINJ <thedinj@yahoo.com>
Create chance.php, move a lot of business logic there.
Add link to Edit Card from library
Load existing card data from editcard.php
Enforce max rating (somewhat)

Signed-off-by: THE DINJ <thedinj@yahoo.com>