Check that clean apk is signed

Before we assumed that the clean apk was properly signed if it existed.
Now we check that the signature is correct and resign it automatically.
Merge pull request #409 from bootstraponline/sign_fix

Check that clean apk is signed