Rmensi/20140617/layers for apis and business logic