Add support for rotate & set-orientation. Add resource/events folder