Minor fixes

Fixed view rendering via $scope.$apply.
For now API returns last 10 messages.
Reversing messages array on the clien.
Clear input field after submiting