Refactor WriterController and implement ACL for #12.

Signed-off-by: crynobone <crynobone@gmail.com>