AngularJs directive for week-based read-write calendar