Ameba main plugin

Merge back to master