moved encode code to src2/core so it can be used in librappture2 for nanovis updated nanovis configure script updated src and src2/core makefiles with encode code move