Screen orientation api

New version of the plugin to simply API closes #4