exposed type model as public

this will allow precompilation of the mdel if the client wishes so; also
changed to lazy and removed dependency on JSON.NET