Merge pull request #50 from bamse16/master

Fixed #45
Various fixes and optimizations
Added message entity to Core Data (+ attributed string encoding)
Attributed string encoding
Merge remote-tracking branch 'alex-alex/master'