updated method calls to match a redactor new api version. Added viewType attribute which changes output view
Merge pull request #2 from webinvader/redactorApiUpdates

Merged pull request from webinvader.