Adding runtime mixin support and constructor prototype

This addresses both the issues I added earlier.