Cleaned up code, moved to require.js model and moved reference libraries into scriptsharp. fixes #5, #1