Move wiring logic and configuration into aloha.js