introduce is? method for logictype and use it.

Conflicts:
	app/controllers/entities_controller.rb
	app/models/ontology.rb
	app/models/ontology/entities.rb
	app/views/entities/index.html.haml
fix logic.name pitfalls (by using to_s).
switch call of is? on logic to ontology.