coplanar/model: Fix the optimized makeFindOne path

This code was copy pasted from makeFindAll and not properly adapted.
coplanar/model: Don't pass down the callbacks when resolving references
coplanar/model: Remove some old code rest
GV: Use .extend() to create subclasses
Model: Move the database handling to a helper class

To make it simpler to handle the database authentification at the
application level move the database access out of the model. This is
done with a new model class that forward all the low level methods
to a database connection object. This object also provide methods to
handle login and logout for the application.
Add a .gitignore to ignore the config file
Cleanup the app structure

The app must now be provided a DB object at init time. The app then
use this DB object to create all the model and view/control classes.

The app now also register a callback on the DB object to allow it
to query the user credentials. This make sure that the user can always
re-login when the session timeout.
coplanar/model: Simplify the references implementation

Extend the "default" implementation with one using the generic
getObjectContext() and drop the dynamic type registration. This make
things simpler and similar to the way typed attributes are handled.