Update .gitignore.

Ignore .class files.
Work on idbc.core.db.

Add more methods.
Unify construction of Images,Tags,and ImageGroups.