Add Models class

It is used for retrieving right factory by Model type, to avoid creating
factory objects all the time. Kudos to @danschultz for the idea. :)