TS-2172: cleanup and move mgmt/api/remote up

for better automake style tidy up, we need to stop compiling the
files in other directoris, use .a and .la instead.
TS-2172: iocore and proxy Makefile.am cleanup

clean up all the cross directory compiling from iocore and mgmt
move some shared files into proxy/shared and seperated .a
TS-2172: Explicitly use subdir-objects in automake init

now it is safe to enable subdir-objects for the automake
TS-2082: fix build with --enable-standalone-iocore

before we remove that completely, get it work fist.