api v2 initial commit, mvc library integrated and some other updates/fixes added