Fix first sync after login

autosync() was not working because af and mf are null in onCreate().
Now this is done in onIGFReady().
Fix possible SQLite error 1802

After deleting the database (on logout), no new one was created because
the MALSqlHelper was not recreated for two reasons:
- the MALSqlHelper is designed as singleton (object is retrieved by
  calling getHelper()), but instance was not unset after deleting the
  database
- malSqlHelper was defined as static in DatabaseManager, so even fixing
  the first point would not fix the bug, because all instances of
  DatabaseManager share the same malSqlHelper

Now MALSqlHelper has the new function deleteDatabase() that deletes the
database and sets instance to null so the next call to getHelper() will
recreate the database. Also malSqlHelper is not defined as static in
DatabaseManager. Also cancel running NetworkTasks on logout to make sure
that the tasks are not accessing the database when it is deleted.
Remove unused MALManager variables
Merge pull request #212 from d-sko/first_sync_fix

Fix first sync after login
Merge pull request #213 from d-sko/database_fixes

Database fixes and a little cleanup
Fix Unknown Item Totals shows 0 on Detailview (fixes #207)
Fix numberpicker if total volumes are unknown
Database cleanup
Merge pull request #208 from ratan12/Fix_indication

Fix Unknown Item Totals shows 0 on Detailview (fixes #207)
Merge pull request #214 from ratan12/Database

DatabaseManager cleanup
Add Detection for Beam in onCreate

NFC beam of titles doesn't always run through onResume, sometimes it goes
through onCreate. Add detection of the beam there as well.

Fixes #215
Fix Grid Too Short on specific devices
Remove old itemgridfragment & basicdetails that have been removed.
Merge pull request #211 from ratan12/Fix_gridview

Fix Grid Too Short on specific devices

Fixes #210