Implement cat command

@theneikos please review.