Command Interface

This isn't ready for merge yet, PRing for code review/comments.