Move ApplicationSerializer into initialize

also add check to see if Ember data is present before specifying the
primary key for the application serializer