Google explains how to create Glass services
theverge.com