Dima

Base cod shaun and I worked on. Contains some model logic begining of views, db, etc.