Moved PRE.iM api methods into a standalone module