Associations and models ready

Please review and add to master or drop me your comments